package com.youshang520i.controller;

import com.youshang520i.service.HelloService;
import com.youshang520i.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author youshang
 */
@RestController
@RequestMapping("/index")
public class MyController {

    @Autowired
    private MyService myService;
    @Autowired
    private HelloService helloService;

    @GetMapping("/query")
    public String query(){
        myService.doSth1();

        System.out.println(helloService.hello());
        return "接口调用 ->>>  query";
    }

}
